package org.lq.view;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import javax.swing.JButton;

public class UI_AddStock extends JInternalFrame {
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UI_AddStock frame = new UI_AddStock();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public UI_AddStock() {
		setTitle("\u6DFB\u52A0\u5E93\u5B58");
		setBounds(100, 100, 312, 280);
		getContentPane().setLayout(null);
		
		JLabel label = new JLabel("\u7F16\u53F7 : ");
		label.setBounds(10, 10, 54, 15);
		getContentPane().add(label);
		
		textField = new JTextField();
		textField.setEditable(false);
		textField.setBounds(74, 7, 66, 21);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel label_1 = new JLabel("\u56FE\u4E66 :");
		label_1.setBounds(10, 49, 54, 15);
		getContentPane().add(label_1);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(84, 45, 154, 23);
		getContentPane().add(comboBox);
		
		JLabel label_2 = new JLabel("\u4EF7\u94B1 :");
		label_2.setBounds(10, 90, 54, 15);
		getContentPane().add(label_2);
		
		textField_1 = new JTextField();
		textField_1.setBounds(74, 87, 121, 21);
		getContentPane().add(textField_1);
		textField_1.setColumns(10);
		
		JLabel label_3 = new JLabel("\u6570\u91CF :");
		label_3.setBounds(10, 138, 54, 15);
		getContentPane().add(label_3);
		
		JSpinner spinner = new JSpinner();
		spinner.setModel(new SpinnerNumberModel(new Integer(1), new Integer(1), null, new Integer(5)));
		spinner.setBounds(74, 135, 86, 22);
		getContentPane().add(spinner);
		
		JButton button = new JButton("\u6DFB\u52A0");
		button.setBounds(84, 187, 93, 23);
		getContentPane().add(button);

	}
}
